/*
 * Created by JFormDesigner on Thu Oct 02 17:03:52 BRT 2008
 */
package visualCAD;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.MouseEvent;

import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JSplitPane;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.SpinnerNumberModel;
import javax.swing.border.LineBorder;

/**
 * @author Felipe Santos
 */
public class holeWindowView extends JFrame {
	public holeWindowView() {
		initComponents();
	}

	private void spinner6MouseClicked(MouseEvent e) {
		System.out.println("clicked 2");
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - victor asdasd
		panel2 = new JPanel();
		label7 = new JLabel();
		nameTextField = new JTextField();
		label4 = new JLabel();
		xPositionSpinner = new JSpinner();
		label1 = new JLabel();
		label6 = new JLabel();
		yPositionSpinner = new JSpinner();
		label8 = new JLabel();
		label5 = new JLabel();
		zPositionSpinner = new JSpinner();
		label9 = new JLabel();
		label2 = new JLabel();
		diameterSpinner = new JSpinner();
		label10 = new JLabel();
		label12 = new JLabel();
		toleranceDiameterHoleTextField = new JSpinner();
		label13 = new JLabel();
		label3 = new JLabel();
		depthSpinner = new JSpinner();
		label11 = new JLabel();
		panel3 = new JPanel();
		panel4 = new JPanel();
		panel5 = new JPanel();
		panel6 = new JPanel();
		panel7 = new JPanel();
		holePanel = new JPanel();
		holeSplitPanel = new JSplitPane();
		cancelButton = new JButton();
		submitButton = new JButton();
		helpButton = new JButton();
		satusLabel = new JLabel();

		//======== this ========
		setTitle("Create Hole");
		setVisible(true);
		Container contentPane = getContentPane();

		//======== panel2 ========
		{

			// JFormDesigner evaluation mark
			panel2.setBorder(new javax.swing.border.CompoundBorder(
				new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
					"JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
					javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
					java.awt.Color.red), panel2.getBorder())); panel2.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0, 0, 50, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0E-4};

			//---- label7 ----
			label7.setText("Name:");
			panel2.add(label7, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(nameTextField, new GridBagConstraints(3, 1, 5, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label4 ----
			label4.setText("X Position:");
			panel2.add(label4, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- xPositionSpinner ----
			xPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(xPositionSpinner, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label1 ----
			label1.setText(" mm");
			panel2.add(label1, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label6 ----
			label6.setText("Y Positions:");
			panel2.add(label6, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- yPositionSpinner ----
			yPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(yPositionSpinner, new GridBagConstraints(3, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label8 ----
			label8.setText(" mm");
			panel2.add(label8, new GridBagConstraints(4, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label5 ----
			label5.setText("Z Position:");
			panel2.add(label5, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- zPositionSpinner ----
			zPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(zPositionSpinner, new GridBagConstraints(3, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label9 ----
			label9.setText(" mm");
			panel2.add(label9, new GridBagConstraints(4, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label2 ----
			label2.setText("Diameter:");
			panel2.add(label2, new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- diameterSpinner ----
			diameterSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(diameterSpinner, new GridBagConstraints(3, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label10 ----
			label10.setText(" mm");
			panel2.add(label10, new GridBagConstraints(4, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label12 ----
			label12.setText(" +/-");
			panel2.add(label12, new GridBagConstraints(5, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- toleranceDiameterHoleTextField ----
			toleranceDiameterHoleTextField.setModel(new SpinnerNumberModel(50, 0, 50, 1));
			panel2.add(toleranceDiameterHoleTextField, new GridBagConstraints(6, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label13 ----
			label13.setText(" um");
			panel2.add(label13, new GridBagConstraints(7, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label3 ----
			label3.setText("Depth:");
			panel2.add(label3, new GridBagConstraints(1, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- depthSpinner ----
			depthSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(depthSpinner, new GridBagConstraints(3, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label11 ----
			label11.setText(" mm");
			panel2.add(label11, new GridBagConstraints(4, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//======== panel3 ========
			{
				panel3.setLayout(new BorderLayout());

				//======== panel4 ========
				{
					panel4.setLayout(new BorderLayout());

					//======== panel5 ========
					{
						panel5.setLayout(new BorderLayout());

						//======== panel6 ========
						{
							panel6.setLayout(new BorderLayout());

							//======== panel7 ========
							{
								panel7.setLayout(new BorderLayout());
							}
							panel6.add(panel7, BorderLayout.SOUTH);
						}
						panel5.add(panel6, BorderLayout.SOUTH);
					}
					panel4.add(panel5, BorderLayout.SOUTH);
				}
				panel3.add(panel4, BorderLayout.SOUTH);
			}
			panel2.add(panel3, new GridBagConstraints(1, 13, 2, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
		}

		//======== holePanel ========
		{
			holePanel.setBackground(Color.white);
			holePanel.setBorder(LineBorder.createBlackLineBorder());
			holePanel.setLayout(new BorderLayout());

			//======== holeSplitPanel ========
			{
				holeSplitPanel.setOrientation(JSplitPane.VERTICAL_SPLIT);
			}
			holePanel.add(holeSplitPanel, BorderLayout.CENTER);
		}

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- helpButton ----
		helpButton.setText("Help");

		//---- satusLabel ----
		satusLabel.setText("Status:");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)
						.addComponent(satusLabel))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(helpButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(submitButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(cancelButton))
						.addComponent(holePanel, GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE))
					.addContainerGap())
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(holePanel, GroupLayout.PREFERRED_SIZE, 433, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
							.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
								.addComponent(cancelButton)
								.addComponent(submitButton)
								.addComponent(helpButton)
								.addComponent(satusLabel))))
					.addContainerGap())
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - victor asdasd
	private JPanel panel2;
	private JLabel label7;
	public JTextField nameTextField;
	private JLabel label4;
	public JSpinner xPositionSpinner;
	private JLabel label1;
	private JLabel label6;
	public JSpinner yPositionSpinner;
	private JLabel label8;
	private JLabel label5;
	public JSpinner zPositionSpinner;
	private JLabel label9;
	private JLabel label2;
	public JSpinner diameterSpinner;
	private JLabel label10;
	private JLabel label12;
	public JSpinner toleranceDiameterHoleTextField;
	private JLabel label13;
	private JLabel label3;
	public JSpinner depthSpinner;
	private JLabel label11;
	private JPanel panel3;
	private JPanel panel4;
	private JPanel panel5;
	private JPanel panel6;
	private JPanel panel7;
	public JPanel holePanel;
	public JSplitPane holeSplitPanel;
	public JButton cancelButton;
	public JButton submitButton;
	public JButton helpButton;
	public JLabel satusLabel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
